home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compendium Deluxe 2
/
LSD and 17bit Compendium Deluxe - Volume II.iso
/
a
/
prog
/
arexx
/
zedrexx.lha
/
ZedREXX
/
REXX
/
Z.zrx
< prev
next >
Wrap
Text File
|
1994-08-07
|
976b
|
52 lines
/* $VER: Z.zrx 1.0 (10.09.93)
* Test script for the Great and Mighty ZedREXX
* Copyright (c) 1993 Reality Check, Inc.
*
*/
OPTIONS RESULTS
SIGNAL ON ERROR
SIGNAL ON HALT
/* Application Data */
'zInterface Z'
'zWindow Main Label "ZedREXX" Open Centered Vertical CloseEvent Justification Center Alignment Center'
'zMenu Project'
'zObject Button Quit Label "&Quit" SelectEvent'
'zEndMenu'
'zObject TextDisplay Value "Hello World"'
'zObject Line'
'zObject Button OK Label "&OK" SelectEvent'
'zEndWindow'
'zEndInterface'
/* Turn everything on */
'zDoMethod Z Activate'
/* Enter the event loop */
DO FOREVER
/* Wait for something to happen */
'zWaitForEvent stem.'
/* Do something with the event */
INTERPRET "zRC="RESULT"()"
END
Halt:
Quit_Select:
Z_Quit:
EXIT
Error:
IF RC=20 THEN DO
SAY "Must be run within zrx"
EXIT
END
SAY "Error" RC "at line" SIGL " (errnum="zErrNum")"
EXIT
OK_Select:
Main_Close:
EXIT